﻿<%@ Page Language="C#" %>
<%@ Register TagPrefix="IRL" TagName="SideBar" Src="SideBar.ascx" %>
<%@ Import Namespace="IRL.Utilities" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<script runat="server">
    public const int CURRENT_MODULE = 1;
    
    protected void Page_Load(object sender, EventArgs e)
    {
        Security SysAcc = new Security(CURRENT_MODULE);
        string dateStr = "24-11-2007";
        // check is authenticate
        SysAcc.Authenticate();
        
        // load reminder count  
        //Mics.loadReminderCount(lblReminderCount);

        SideBar1.loadData();
        if (IsPostBack)
        {
            //Response.Write(SideBar1.IsPostBack);
            //Server.Transfer("default2.aspx");
        }
        string[] ar = dateStr.Split('-');
        Array.Reverse(ar);
        Response.Write(String.Join("-", ar));

        WriteCookies();
    }


    void WriteCookies()
    {
        for (int i = 0; i < Request.Cookies.Count; i++)
        {
            Response.Write(Request.Cookies[i].Name + ": " + Request.Cookies[i].Value + "<br />");
        }
    }


    protected void imgTest_Click(object sender, ImageClickEventArgs e)
    {

    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <title>Indochina Research</title>
    <link rel="SHORTCUT ICON" href="../irl.ico" type="image/x-icon" />
    <link type="text/css" rel="stylesheet" href="../css/global.css" />
	

</head>

<body>
<table width="773" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
		<td width="765" height="540" align="center" valign="top" style="border:solid 1px #10147e;" >
			<!-- header -->
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr bgcolor="#F4F4F9">
					<td colspan="3" align="right" style="padding:10px;">
						<b class="blueL">Client Management System</b>
					</td>
				</tr>
				<tr>
					<td class="wave_l">&nbsp;</td>
					<td><img src="images/wave_logo.jpg" width="107" height="83"></td>
					<td class="wave_r">&nbsp;</td>
				</tr>
				<tr>
					<td colspan="3" style="padding:0 20px;">
						<div style="background-color:#bcb3d5; padding:5px 10px;">
							<span style="float:right">

								&nbsp;</span>
							<span class="pathmap">
								<a href="default.aspx" >CPanel</a> :: Ops Files
						  </span>
						</div>
						<br />
						
						
					</td>
				</tr>
				
			</table>
			
			<!-- body --><form id="SearchForm" method="post" runat="server">
			<table border="0" width="100%" cellspacing="0" cellpadding="0">
				<tr>
					<td align="center" valign="top" style="padding-left:20px;">
						<table align="left" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td valign="top">
								
									<IRL:SideBar ID="SideBar1" runat="server" />
								
								</td>
								<td width="10"><img src="images/spacer.gif" width="10" height="1" /></td>
								<td valign="top">
									<div class="item"><asp:LinkButton ID="cmdTest" Text="Test Button" runat="server" /></div>
									<div><asp:ImageButton ID="imgTest" ImageUrl="~/images/calendar.gif" runat="server" OnClick="imgTest_Click" /></div>
									<div>
									    
									</div>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table></form>
			
		</td>
		
		<td width="6" class="rightShadow" valign="top">
			<img src="images/white.gif" width="6" height="6" /></td>
	</tr>
	
	<!-- bottom shadow -->
	<tr>
		<td height="6" class="bottomShadow">
			<img src="images/white.gif" width="6" height="6" /></td>
		
		<td width="6" height="6">
			<img src="images/shadow_corner.gif" width="6" height="6" /></td>
	</tr>
</table>


</body>
</html>
